package cn.ibizlab.odoo.core.odoo_hr.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_hr.domain.Hr_leave_report;
import cn.ibizlab.odoo.core.odoo_hr.filter.Hr_leave_reportSearchContext;

/**
 * 实体[Hr_leave_report] 服务对象接口
 */

public interface IHr_leave_reportService{
     void updateBatch(List<Hr_leave_report> hr_leave_reports, int batchSize) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     Hr_leave_report get(Integer id) ;
     Hr_leave_report get(Hr_leave_report hr_leave_report) ;
     boolean create(Hr_leave_report hr_leave_report) ;
     boolean update(Hr_leave_report hr_leave_report) ;
     void createBatch(List<Hr_leave_report> hr_leave_reports, int batchSize) ;
     boolean remove(Integer id) ;

    /**
     * 查询集合 默认查询
     */
    Page<Hr_leave_report> searchDefault(Hr_leave_reportSearchContext context) ;

    /**
     * 根据HR 部门查询
     */
     Page<Hr_leave_report> selectByOdoo_department(Integer id) ;

    /**
     * 根据员工类别查询
     */
     Page<Hr_leave_report> selectByOdoo_category(Integer id) ;

    /**
     * 根据员工查询
     */
     Page<Hr_leave_report> selectByOdoo_employee(Integer id) ;

    /**
     * 根据休假类型查询
     */
     Page<Hr_leave_report> selectByOdoo_holiday_status(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Hr_leave_report convert2Domain(cn.ibizlab.odoo.core.client.model.Ihr_leave_report model ,Hr_leave_report domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Ihr_leave_report convert2Model(Hr_leave_report domain , cn.ibizlab.odoo.core.client.model.Ihr_leave_report model);

}
